/*
 * @Author: zhangweinan
 * @Date: 2022-12-08 10:32:59
 * @LastEditors: zhangweinan
 * @LastEditTime: 2022-12-12 01:40:23
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\api\enterprise\expert.js
 */
import request from '@/utils/request'

// 专家库入库/编辑
export function addExpertInfo(data) {
  return request({
    url: "expert/info/edit",
    method: 'post',
    data
  })
}
//专辑库分页查询
export function selectExpertInfo(data) {
  return request({
    url: 'expert/info/queryPage',
    method: 'get',
    params: {
      propertyValue: data.propertyValue,
      queryProperty: data.queryProperty,
      organId: data.organId,
      pageNo: data.pageNo,
      pageSize: data.pageSize,
      orderProperty: data.orderProperty
    }
  })
}

//热门标签查询
export function getHotAreaExpertiseTag(data) {
  return request({
    url: 'expert/info/getHotAreaExpertiseTag',
    method: 'get'
  })
}

//获取专辑库详情数据
export function getExperiseDetail(data) {
  return request({
    url: `expert/info/getDetail/${data}`,
    method: 'post'
  })
}
//删除专家库记录
export function deleteExperise(data) {
  return request({
    url: 'expert/info/deleteBatch',
    method: 'delete',
    data
  })
}

